home *** CD-ROM | disk | FTP | other *** search
/ Aminet 51 / Aminet 51 (2002)(GTI - Schatztruhe)[!][Oct 2002].iso / Aminet / util / arc / xadmasterdev.lha / xad / Include / C / clib / xadmaster_protos.h
Encoding:
C/C++ Source or Header  |  2002-08-20  |  3.7 KB  |  95 lines

  1. #ifndef CLIB_XADMASTER_PROTOS_H
  2. #define CLIB_XADMASTER_PROTOS_H
  3.  
  4.  
  5. /*
  6. **    $VER: xadmaster_protos.h 12.1 (12.08.2002)
  7. **
  8. **    C prototypes. For use with 32 bit integers only.
  9. **
  10. **    Copyright © 2002 Dirk Stöcker
  11. **    All Rights Reserved
  12. */
  13.  
  14. #ifndef  EXEC_TYPES_H
  15. #include <exec/types.h>
  16. #endif
  17. #ifndef  UTILITY_TAGITEM_H
  18. #include <utility/tagitem.h>
  19. #endif
  20. #ifndef  LIBRARIES_XADMASTER_H
  21. #include <libraries/xadmaster.h>
  22. #endif
  23.  
  24. APTR xadAllocObjectA(LONG type, const struct TagItem * tags);
  25. APTR xadAllocObject(LONG type, Tag tags, ...);
  26. void xadFreeObjectA(APTR object, const struct TagItem * tags);
  27. void xadFreeObject(APTR object, Tag tags, ...);
  28. struct xadClient * xadRecogFileA(ULONG size, APTR memory, const struct TagItem * tags);
  29. struct xadClient * xadRecogFile(ULONG size, APTR memory, Tag tags, ...);
  30. LONG xadGetInfoA(struct xadArchiveInfo * ai, const struct TagItem * tags);
  31. LONG xadGetInfo(struct xadArchiveInfo * ai, Tag tags, ...);
  32. void xadFreeInfo(struct xadArchiveInfo * ai);
  33. LONG xadFileUnArcA(struct xadArchiveInfo * ai, const struct TagItem * tags);
  34. LONG xadFileUnArc(struct xadArchiveInfo * ai, Tag tags, ...);
  35. LONG xadDiskUnArcA(struct xadArchiveInfo * ai, const struct TagItem * tags);
  36. LONG xadDiskUnArc(struct xadArchiveInfo * ai, Tag tags, ...);
  37. STRPTR xadGetErrorText(ULONG errnum);
  38. struct xadClient * xadGetClientInfo(void);
  39.  
  40. /* This HookAccess function can be called from clients only! */
  41.  
  42. LONG xadHookAccess(ULONG command, LONG data, APTR buffer, struct xadArchiveInfo * ai);
  43. LONG xadConvertDatesA(const struct TagItem * tags);
  44. LONG xadConvertDates(Tag tags, ...);
  45. UWORD xadCalcCRC16(ULONG id, ULONG init, ULONG size, STRPTR buffer);
  46. ULONG xadCalcCRC32(ULONG id, ULONG init, ULONG size, STRPTR buffer);
  47.  
  48. /* --- functions in V2 or higher --- */
  49.  
  50. APTR xadAllocVec(ULONG size, ULONG flags);
  51. void xadCopyMem(APTR src, APTR dest, ULONG size);
  52.  
  53. /* --- functions in V3 or higher --- */
  54.  
  55. LONG xadHookTagAccessA(ULONG command, LONG data, APTR buffer, struct xadArchiveInfo * ai,
  56.     const struct TagItem * tags);
  57. LONG xadHookTagAccess(ULONG command, LONG data, APTR buffer, struct xadArchiveInfo * ai,
  58.     Tag tags, ...);
  59.  
  60. /* --- functions in V4 or higher --- */
  61.  
  62. LONG xadConvertProtectionA(const struct TagItem * tags);
  63. LONG xadConvertProtection(Tag tags, ...);
  64. LONG xadGetDiskInfoA(struct xadArchiveInfo * ai, const struct TagItem * tags);
  65. LONG xadGetDiskInfo(struct xadArchiveInfo * ai, Tag tags, ...);
  66. LONG xadDiskFileUnArcA(struct xadArchiveInfo * ai, const struct TagItem * tags);
  67. LONG xadDiskFileUnArc(struct xadArchiveInfo * ai, Tag tags, ...);
  68.  
  69. /* --- functions in V8 or higher --- */
  70.  
  71. LONG xadGetHookAccessA(struct xadArchiveInfo * ai, const struct TagItem * tags);
  72. LONG xadGetHookAccess(struct xadArchiveInfo * ai, Tag tags, ...);
  73. LONG xadFreeHookAccessA(struct xadArchiveInfo * ai, const struct TagItem * tags);
  74. LONG xadFreeHookAccess(struct xadArchiveInfo * ai, Tag tags, ...);
  75.  
  76. /* --- functions in V10 or higher --- */
  77.  
  78. LONG xadAddFileEntryA(struct xadFileInfo * fi, struct xadArchiveInfo * ai,
  79.     const struct TagItem * tags);
  80. LONG xadAddFileEntry(struct xadFileInfo * fi, struct xadArchiveInfo * ai, Tag tags, ...);
  81. LONG xadAddDiskEntryA(struct xadDiskInfo * di, struct xadArchiveInfo * ai,
  82.     const struct TagItem * tags);
  83. LONG xadAddDiskEntry(struct xadDiskInfo * di, struct xadArchiveInfo * ai, Tag tags, ...);
  84.  
  85. /* --- functions in V12 or higher --- */
  86.  
  87. LONG xadGetFilenameA(ULONG buffersize, STRPTR buffer, STRPTR path, STRPTR name,
  88.     const struct TagItem * tags);
  89. LONG xadGetFilename(ULONG buffersize, STRPTR buffer, STRPTR path, STRPTR name, Tag tags,
  90.     ...);
  91. STRPTR xadConvertNameA(ULONG charset, const struct TagItem * tags);
  92. STRPTR xadConvertName(ULONG charset, Tag tags, ...);
  93.  
  94. #endif    /*  CLIB_XADMASTER_PROTOS_H  */
  95.